<template>
  <div>
    <el-button @click="dialogVisible = true">开始规划</el-button>
    <LineDialog :dialogVisible.sync="dialogVisible" :info="info" @save="handleChange" />
  </div>
</template>

<script>
import LineDialog from './LineDialog.vue'
export default {
  name: 'StrategyLines',
  components: { LineDialog },
  data() {
    return {
      dialogVisible: false
    }
  },
  watch: {
    value() {
      console.log('value', this.value)
    }
  },
  methods: {
    handleChange(e) {
      this.$emit('input', e)
    }
  },
  props: {
    value: {
      type: Array,
      default: () => []
    },
    info: {
      type: Object,
      default: () => ({})
    }
  }
}
</script>

